import Vue from 'vue'
import VueRouter from 'vue-router'
import search from '../components/search.vue'
import Songlist from '../components/Songlist.vue'
import Recommend from '../views/Recommend.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: "/",
    name: "Recommend",
    component: Recommend,
    meta: { isShowNav: true },
},
  
  {
    path: '/Hot',
    name: 'Hot',
    meta: { isShowNav: true },
    component: () => import(/* webpackChunkName: "about" */ '../components/Hot.vue')
  },
  {
    path: '/search',
    name: 'search',
    component:search ,
    meta: { isShowNav: true },
  },
  {
    path: '/Songlist',
    name: 'Songlist',
    meta:{isShow:true},
    component:Songlist
  },
]

const router = new VueRouter({
  routes
})

export default router
